
include ../../Makefile.Res
KERNELDIR := ../../kernel/linux/
MODDIR := /lib/modules/$(KERNELVERSION)/kernel/net/netfilter/

ifneq ($(KERNELRELEASE),)
obj-m := ipt_time.o
else
all: ipt_time 

ipt_time: ipt_time.c ipt_time.h
	$(MAKE) -C $(KERNELDIR) M=`pwd` modules
endif

install:ipt_time 
	@[ -d $(DESTDIR)$(MODDIR) ] || mkdir -p $(DESTDIR)$(MODDIR)
	cp -f *.ko $(DESTDIR)$(MODDIR)

clean:
	rm -rf *.o *~ .depend *.ko* *.mod.c .tmp_versions Module.symvers .*cmd 
